package com.team.game.Game;

import android.graphics.Bitmap;
import android.graphics.RectF;

import com.team.game.Game.Wizards.FireWizard.Fire_Ball;
import com.team.game.Game.Wizards.FireWizard.Fire_Circle;
import com.team.game.Game.Wizards.FireWizard.Fire_Ray;
import com.team.game.Game.Wizards.FireWizard.Meteoryte;
import com.team.game.Game.Wizards.FireWizard.eight_Spell;
import com.team.game.Game.Wizards.FireWizard.fifth_Spell;
import com.team.game.Game.Wizards.FireWizard.seven_Spell;
import com.team.game.Game.Wizards.FireWizard.six_Spell;
import com.team.game.framework.Abstract.Spell;
import com.team.game.framework.Game;
import com.team.game.framework.impl.Scale_X_Y;

import java.util.ArrayList;

public class WizardMaker {

    public static void makeWizardGame (Game game, int numb, ArrayList<Spell> spells, String[] nameSpell) {

        switch (numb) {
            case 0:
                spells.add (new Fire_Ball (game, new RectF (498 * Scale_X_Y.Scale_X, 1537 * Scale_X_Y.Scale_Y, 582 * Scale_X_Y.Scale_X, 1615 * Scale_X_Y.Scale_Y)));
                spells.add (new Fire_Circle (game));
                spells.add (new Fire_Ray (game, new RectF (498 * Scale_X_Y.Scale_X, 1537 * Scale_X_Y.Scale_Y, 582 * Scale_X_Y.Scale_X, 1615 * Scale_X_Y.Scale_Y)));
                spells.add (new Meteoryte (game));
                spells.add (new fifth_Spell (game));
                break;

            default:
                throw new RuntimeException ("Unknown mag with index: " + numb);
        }

        for (int i = 0; i < 5; i++) {
            nameSpell[i] = spells.get (i).SPELL_NAME;
        }

    }




    public static String makeWizardProfile (int numb, ArrayList<Spell> ArraySpell, Bitmap Mage) {
        String name;

        name = "FireMage";
        switch (numb) {
            case 0: {
                name = "FireMage";
                ArraySpell.add(new Fire_Ball());
                ArraySpell.add(new Fire_Circle());
                ArraySpell.add(new Fire_Ray());
                ArraySpell.add(new Meteoryte());
                ArraySpell.add(new fifth_Spell());
                ArraySpell.add(new six_Spell());
                ArraySpell.add(new seven_Spell());
                ArraySpell.add(new eight_Spell());
                break;
            }
            case 1: {
                name = "hero_2";
                break;
            }

        }
        return name;
    }
//    public static void SetStringSpell(int i, String[] nameSpell) {
//        switch (i) {
//            case 1: {
//                nameSpell[0] = "fire_ball";
//                nameSpell[1] = "fire_circle";
//                nameSpell[2] = "fire_ray";
//                nameSpell[3] = "fire_meteor";
//                nameSpell[4] = "-";
//            }
//        }
//    }
}
